<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加部门</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-4">
    <h2>添加新部门</h2>

    <form th:action="@{/departItem/add}" method="post">
        <div class="form-group">
            <label for="departID">部门ID:</label>
            <input type="text" class="form-control" id="departID" name="departID" required>
        </div>

        <div class="form-group">
            <label for="departName">部门名称:</label>
            <input type="text" class="form-control" id="departName" name="departName" required>
        </div>

        <button type="submit" class="btn btn-primary">保存</button>
        <a href="/departItem/list" class="btn btn-secondary">取消</a>
    </form>
</div>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>